import request from '@/utils/request'

export default {

  addVideo(video){
    return request({
      url: `/eduservice/video/addVideo`,
      method: 'post',
      data:video
    })
  },

  //删除小节
  deleteVideo(id){
    return request({
      url: `/eduservice/video/${id}`,
      method: 'delete',
    })
  },
  //删除小节中的视频
  deleteAlyvod(id){
    return request({
      url: `/eduvod/video//removeAlyVideo/${id}`,
      method: 'delete',
    })
  },

  getVideoInfo(id){
    return request({
      url: `/eduservice/video/getVideo/${id}`,
      method: 'get',
    })
  },

  updateVideo(video){
    return request({
      url: `/eduservice/video/updateVideo`,
      method: 'post',
      data:video
    })
  },
}
